package com.elecbook.content.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Z-ken
 * @since 2024/12/07 13:34:12
 */
@Getter
@Setter
@TableName("contribute")
@ApiModel(value = "Contribute对象", description = "")
public class Contribute implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("投稿ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("稿件标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("投稿信息简介")
    @TableField("brief_introduction")
    private String briefIntroduction;

    @ApiModelProperty("稿件URL")
    @TableField("url")
    private String url;

    @ApiModelProperty("简介")
    @TableField("summary")
    private String summary;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("封面URL")
    @TableField("picture")
    private String picture;

    @ApiModelProperty("审核状态")
    @TableField("judge_status")
    private Integer judgeStatus;

    @ApiModelProperty("创建人")
    @TableField("CREATED_BY")
    private Integer createdBy;

    @ApiModelProperty("创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @TableField("UPDATED_BY")
    private Integer updatedBy;

    @ApiModelProperty("更新时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;
}
